package com.chatplus.application.domain.request;

import com.chatplus.application.enumeration.AiPlatformEnum;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * ApiKey保存更新请求参数
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ApiKeySaveRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @JsonProperty("id")
    private Long id;
    @JsonProperty("platform")
    private AiPlatformEnum platform;
    @JsonProperty("name")
    private String name;
    @JsonProperty("type")
    private String type;
    @JsonProperty("value")
    private String value;
    @JsonProperty("api_url")
    private String apiUrl;
    @JsonProperty("enabled")
    private boolean enabled;
    @JsonProperty("use_proxy")
    private boolean useProxy;
    @JsonProperty("proxy_url")
    private String proxyUrl;
    @JsonProperty("reserved")
    private String reserved;
    @JsonProperty("notify_url")
    private String notifyUrl;

}
